package chuishop.yiqimaicai.mapper;

import chuishop.yiqimaicai.pojo.BusinessDetails;

import java.util.List;

//业务明细,商品进仓出仓情况
public interface BusinessDetailsMapper {

    /**
     * 查询所有业务明细
     * @return
     */
    List<BusinessDetails> findAllBusinessDetails();

    List<BusinessDetails> findDetailsById(Integer gid,Integer sid,Integer gsid);
    List<BusinessDetails> findDetailsByGid(Integer gid);
    List<BusinessDetails> findDetailsBySid(Integer sid);
    List<BusinessDetails> findDetailsByGsid(Integer gsid);
    List<BusinessDetails> findDetailsByGidAndSid(Integer gid,Integer sid);
    List<BusinessDetails> findDetailsByGidAndGsid(Integer gid,Integer gsid);
    List<BusinessDetails> findDetailsBySidAndGsid(Integer sid,Integer gsid);

    //删除功能
    int delBusinessDetails(String[] ids);
    //添加功能
    int addBusinessDetails(BusinessDetails businessDetails);

    int updateBusinessDetails(BusinessDetails businessDetails);


}
